//
//  HWObjectiveCTools.m
//  HWanGame
//
//  Created by 王昌健 on 2022/3/29.
//  Copyright © 2022 94Wan. All rights reserved.
//

#import "HWObjectiveCTools.h"
#import <objc/runtime.h>
@implementation HWObjectiveCTools
- (void)selectAppBundleId
{

}
- (NSString *)getParseBundleIdString:(NSString *)description
{
    NSString * ret = @"";
    NSString * target = [description description];
    if (target == nil)
    {
        return ret;
    }
    NSArray * arrObj = [target componentsSeparatedByString:@" "];
    switch ([arrObj count])
    {
        case 2: // [iOS7.0 ~ iOS8.1)
        case 3: // [iOS8.1 ~ iOS9.0)
        {
            ret = [arrObj lastObject];
        }
            break;
        case 4: // [iOS9 +)
        {
            ret = [arrObj objectAtIndex:2];
        }
            break;
        default:
            break;
    }
    return ret;
}

- (void)openToAPP:(NSString *)bundleId {

}
- (BOOL)appCanOpenBundleId:(NSString *)bundleId {

    return NO;
    
}

@end
